
Route::group(function () {
    //积分商城
        Route::get("/score_index", "app\api\controller\Score@goods_list")->name("score.score_index");// 商品列表
        Route::get("/score_detail", "app\api\controller\Score@detail")->name("score.score_detail");// 商品详情
        Route::post("/score_exchange", "app\api\controller\Score@exchange")->name("score.exchange");// 兑换商品
        Route::get("/score_log", "app\api\controller\Score@exchangeLog")->name("score.score_log");// 兑换记录
        Route::post("/save_prize", "app\api\controller\Score@save_prize")->name("score.save_prize");// 兑换记录留资
    })
->allowCrossDomain()
->middleware(\app\api\middleware\TokenMiddleware::class,true);// jwt认证